<!DOCTYPE html>
<html>
    <head>
        <?=$this->headTitle()?>
        <?=$this->headLink()?>
        <?=$this->headScript()?>
        <?=$this->headMeta()?>
    </head>
    <body>
        <div class="wrap-header">
            <div class="navbar navbar-static-top span12">
                <div class="navbar-inner">
                    <a href="/" class="brand active" >Главная</a>
                    <? $this->navigation()->menu()->setUlClass('nav pull-right divider-vertical');?>
                    <?=$this->navigation()->menu();?>
                </div>
                <?= $this->notes(); ?>
            </div>
        </div>
        <div id="wrap-container" class="container-fluid">
            <button type="button" class="btn btn-info" onclick="mn.addNotes();">Добавить заметку
                <i class="icon-plus-sign"></i>
            </button>
            <div id="container" class="row-fluid">
                <div id="content" class="<?if(!$this->mainPage):?>span9<?else:?>span11<?endif;?>">
                    <?= $this->layout()->content ?>
                </div>
                <div id="sidebar" class="span3">
                    <?= $this->subMenu($this->tplSidebar) ?>
                </div>
            </div>
        </div>

        <!--   Модальное окно  -->
        <div id="modal" class="modal hide fade">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h3 id="modal-title">
        <!-- заголовок окна-->
                </h3>
            </div>
            <div id="modal-body" class="modal-body">
        <!--  тело окна-->
            </div>
            <div class="modal-footer hide">
        <!-- навигация окна-->
                <button id="modal-chancel" class="btn btn-danger"></button>
                <button id="modal-confirm" class="btn btn-primary"></button>

            </div>
        </div>
        <!-- / Модальное окно  -->

        <footer class="footer">
            <div class="container">
                <? if ($this->mynotes()->isProfilerEnabled()): ?>
                    <a href="/index/profiler?mode=off"  id="profiler-button" class="btn btn-danger">Выключить профайлер</a>
                <? else:?>
                    <a href="/index/profiler?mode=on" id="profiler-button" class="btn btn-primary">Включить профайлер</a>
                <? endif; ?>
            </div>
        </footer>
    </body>
</html>
